package com.minimalist.common.entity.lindi.vo.purchasetownindex;

import com.minimalist.common.config.mybatis.bo.PageReq;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serial;
import java.io.Serializable;
import java.util.Objects;

/**
 * 林地指标交易平台_镇街购买指标 查询VO类
 *
 * @author 11987
 */
@Schema(name = "林地指标交易平台_镇街购买指标查询实体")
public class LindiPurchaseTownIndexQueryVO extends PageReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(name = "purchaseIndexRecordId", description = "购买指标记录ID", type = "string")
    private Long purchaseIndexRecordId;

    @Schema(name = "townName", description = "镇街名称", type = "string")
    private String townName;

    @Schema(name = "townIndex", description = "购买亩数", type = "string")
    private String townIndex;

    public LindiPurchaseTownIndexQueryVO() {
    }

    public Long getPurchaseIndexRecordId() {
        return purchaseIndexRecordId;
    }

    public void setPurchaseIndexRecordId(Long purchaseIndexRecordId) {
        this.purchaseIndexRecordId = purchaseIndexRecordId;
    }

    public String getTownName() {
        return townName;
    }

    public void setTownName(String townName) {
        this.townName = townName;
    }

    public String getTownIndex() {
        return townIndex;
    }

    public void setTownIndex(String townIndex) {
        this.townIndex = townIndex;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        LindiPurchaseTownIndexQueryVO that = (LindiPurchaseTownIndexQueryVO) o;
        return Objects.equals(purchaseIndexRecordId, that.purchaseIndexRecordId) &&
                Objects.equals(townName, that.townName) &&
                Objects.equals(townIndex, that.townIndex);
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), purchaseIndexRecordId, townName, townIndex);
    }

    @Override
    public String toString() {
        return "LindiPurchaseTownIndexQueryVO{" +
                "purchaseIndexRecordId=" + purchaseIndexRecordId +
                ", townName='" + townName + '\'' +
                ", townIndex='" + townIndex + '\'' +
                '}';
    }
}